<div class="navbar navbar-default navbar-static-top">
  <div class="container">
    <div class="row">
      <div class="col-md-9">
        <a class="navbar-brand" href="<%= current_user.meitihuali? ? admins_meitis_path : admins_news_index_path %>">华东理工大学多媒体管理平台</a>
        <div class="navbar-collapse collapse navbar-responsive-collapse">
          <ul class="nav navbar-nav">
            <% if current_user.meitihuali? %>
                <li <%= "class=active" if params[:controller] == "news"%>><%= link_to "信息管理", admins_meitis_path %></li>
            <% else %>
                <li <%= "class=active" if params[:controller] == "news"%>><%= link_to "信息管理", admins_news_index_path %></li>
            <% end %>
            <% if can? :manage, User || current_user.admin? %>
              <li><%= link_to "用户管理", admins_groups_path %></li>
            <% end %>
            <li>
              <a href="/admins/accounts/<%= current_user.id %>/edit" class = "btn-link btn-small">用户信息管理
              </a>
            </li>
          </ul>
        </div>
      </div>
      <div class="col-md-3">
        <div class="navbar-collapse collapse navbar-responsive-collapse">
          <ul class="nav navbar-nav">
            <li>
                <a>欢迎您：<%=current_user.login  %></a>
            </li>
            <li>
              <%= link_to('登出', destroy_user_session_path,:class => "btn-link btn-small ", :rel => "nofollow") %>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
    <div class="span2">
      
    </div>
  </div>
</div>